reduce the memory consumption.