introduce HashPersister interfaces and LocalMapHashes implementation