Students take heed...
A double espresso shot after swotting for an exam might help to jog those elusive memories, new research suggests.
Scientists have found the first clear evidence of caffeine's memory-boosting effect, and shown that it lasts at least 24 hours.
Just one double espresso could be enough to notice an effect
Volunteers took part in a double-blind trial in which they were either given a 200 milligram caffeine pill or dummy placebo tablet five minutes after studying a series of images.
Tests a day later proved that the memory of those who took caffeine had been enhanced at a deep level.
The amount of caffeine used was roughly equivalent to a double shot of strong espresso coffee.
US lead researcher Dr Michael Yassa, assistant professor of psychological and brain sciences at Johns Hopkins University in Baltimore, said: "We've always known that caffeine has cognitive-enhancing effects, but its particular effects on strengthening memories and making them resistant to forgetting has never been examined in detail in humans.
"We report for the first time a specific effect of caffeine on reducing forgetting over 24 hours."
More than 100 participants took part in the study, none of whom were regular users of caffeinated products.
Before being given the caffeine pill or placebo, they were asked to identify a series of pictured objects as either outdoor or indoor items.
The next day, both groups were tested on their ability to recognise the images they had been shown earlier. Some of the images were the same as the ones they had seen, some were new, and some similar but not identical.
Although all the volunteers correctly identified "new" and "old" pictures, those who had taken the caffeine pill were better able to spot "similar" images.
Participants not dosed with caffeine were more likely to be fooled into thinking the similar pictures were the ones viewed the previous day.
Recognising the difference between two similar but not identical items reflects a deep level of memory retention, said the team writing in the journal Nature Neuroscience.
"If we used a standard recognition memory task without these tricky similar items, we would have found no effect of caffeine," said Dr Yassa.
"However, using these items requires the brain to make a more difficult discrimination - what we call pattern separation, which seems to be the process that is enhanced by caffeine in our case."
He added: "Almost all prior studies administered caffeine before the study session, so if there is an enhancement, it's not clear if it's due to caffeine's effects on attention, vigilance, focus or other factors.
"By administering caffeine after the experiment, we rule out all of these effects and make sure that if there is an enhancement, it's due to memory and nothing else.
"The next step for us is to figure out the brain mechanisms underlying this enhancement. We can use brain-imaging techniques to address these questions.
"We also know that caffeine is associated with healthy longevity and may have some protective effects from cognitive decline like Alzheimer's disease. These are certainly important questions for the future."
Caffeine may act on the hippocampus, a part of the brain that acts as a relay switching centre for short and long term memories.
Most research on memory, from the effects of concussion on athletes to war-related head injuries and dementia in the elderly, is focused on the hippocampus brain region.
Until now, the few caffeine studies done have suggested it has little or no effect on long-term memory.
But previous research has involved administering caffeine before learning, not after, said the scientists. This makes it difficult to disentangle the impact on memory from other caffeine effects such as increased arousal, vigilance, attention and processing speed.