optimized memory consumption.