Switch to using buffered I/O when doing TLS (but only for output).