French and American researchers discovered that brain events called "sharp wave ripples" are responsible for consolidating memory. These ripples also transfer stored information from temporary memories (in the hippocampus) to long-term memory storage (in the neocortex). are more frequent with people who are sleepy.
https://goldencondor.org/lunexia-sleep-aid/