Tweak the BufferedIO class to enable a memory-mapped file implementation