Tweak buffer allocation to alloc double the previous memory as before when encoding requests to avoid unnecessary allocs