Allocate buffer to allow large reads, rather than force all reads down to 4K.
Add maximum buffer size.