Optimized znode check reducing required zookeeper requests