The caffeine equivalent to that in two cups of coffee can boost performance on a memory test. Sophie Bushwick reports.