LPS-43301 Optimize OutputStreamWriter and WriterOutputStream
LPS-43301 SF