Speed up tomcat, adjust duplication