Try to use existing bytes buffer before doing file I/O.