Use WeakReferences to avoid Tomcat ThreadLocal leak warning.