Use a sqlite database locally
Use the sqlite VFS for change tracking (or do brute force rehash)
Sync the sqlite database to other nodes
Have a "compute over data" thing that reads multiple sqlite dbs and updates an aggregated sqlite db.
https://www.sqlite.org/vfs.html