My Apple iMac used to keep me up all night, but it started having monitor problems.
It's the sugar. A lot of it is as the monosaccharide fructose, so it can go straight from your stomach lining to the bloodstream in few minutes to fuel those tired cells. Sucrose (table sugar) is a disaccharide and must be processed first, taken 30 minutes to an hour before it is ready.