Reduce IO by buffering reads and writes more efficiently