By the way, After Effects 25.2 was just released with honestly one of the biggest features – High Performance Preview Playback.
It takes advantage of how fast modern SSDs are and combines the Disk Cache with RAM Preview so you can reliably play back your whole comp even if it doesn't all fit into RAM!
https://helpx.adobe.com/after-effects/using/whats-new/2025-2.html