REM cycle optimization