Researchers at Tel Aviv University and UCLA have shown that long-lasting memories are consolidated during sleep by communication between the hippocampus and the cerebral cortex. Deep-brain stimulation during sleep improves memory consolidation and provides hope for dementia patients.
https://english.tau.ac.il/memory_sleep