provide a function to resize encode buffer. 65536 seems too small for NFS read
and write to perform well.