tmp
Fix output stream performance for large writes

If a write is too large to fit into the buffer then
allocate up to MAX_BUFFERS_TO_ALLOCATE buffers from
the pool to hold the extra data, if it still does not
fit then loop re-using those buffers.