We should optimize the memory usage.