RAM usage optimizations