optimize writing of static text to client