- Cache the XSLT template - Use a StringWriter for XML output instead of ByteArrayOutputStream (the stringwriter is giving correct charset on app engine)