wip concept of cacheHashes and jsondb implemented