Cognitive performance Summary—Caffeine has a long history of use for enhancing mood and cognitive (mental) function. Caffeine may be useful when consumed prior to a cognition-related task. Caffeine has also appeared to heighten working memory and improve reaction time but had less of an effect on long-term memory.