Major performance improvements on buffering, reading and writing operations.