Optimized memory consumption.