prevent unneeded big buffer allocation