Add ability to write buffers directly to the output streams for best performance