zookeeper java optimizations