Avoid ThreadLocals to prevent classloader leaks in Tomcat (JAVA-343).