np.save instead of tofile as recommended
mmap for performance