Avoiding to realloc data over and over should rather be handled with something similar to iovectors instead.