Restored stream buffering
Disabling it was causing bugs when reading directly from a file