According to one study, people who consumed 200 milligrams of caffeine—slightly more than what’s in a Starbucks 8-oz blonde roast—after viewing certain images were better able to recall them 24 hours later than participants who didn’t have caffeine. Caffeine blocks the neurotransmitter adenosine, so it can’t inhibit another neurotransmitter called norepinephrine, which plays a crucial role in helping you retrieve a memory, the researchers say.