Optimising Memory file to use byte[]