Caffeine and mood: the borrowed energy problem
Caffeine doesn't create energy, it blocks the signal that you're tired. The mood effects depend less on how much you drink than on when you drink it and how much sleep you're borrowing against.