Round of changes + improvement to example.json + local keystore works nicely. Encrypted and normal databags doing what we want..