private <T> Optional<T> read(Path path, Function<byte[], T> mapper) {
        return db.getData(path).filter(data -> data.length > 0).map(mapper);
    }
Returns a given number of unique provision indices
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDb.java