Merge buffers for performance reasons if possible when encode http requests/responses.