Created dirty-db-cleaner.py - prunes old history from dirty.db files

This little utility will prune all but the latest value for any given key from a dirty.db file.

If I understand the format right, this should have zero impact on the actual live contents of the database but can easily save gigabytes of space if an instance has been in use for a while.