Using Curator TreeCache instead of dumbly reading the ZooKeeper tree every time