Use internal structure for saving values into the mapdb database.
Expose transaction-aware iterable for findWithState and update usage to try-with-resources.