Improved the performance of CPS's OutputSteram by adding write(bytes[])