driving its gradual redistribution to long-term storage in the cortex. REM sleep, on the other hand, with its similarity to waking brain activity, is associated with the consolidation of procedural memory.
The benefits of a good night's sleep - Shai Marcu