Optimize memory-mapping file receiving process.