avoid needlessly preallocating read buffer