[lib/connection]Trim buffer-sizes. Smaller buffer reduces som memory and computational overhead.