Rewrite to send data in larger chunks.