private Cache newCache(long generation) {
        return enabled ? new Cache(generation, curator) : new NoCache(generation, curator);
    }
Caches must only be instantiated using this method
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CachingCurator.java