save raw dataset using mmap