This change corrects the size of various internal buffers used. The previous behavior did not cause validity problems but wasted space.