Optimization on memory space.