Some optimizations to the output streams.