Implement a way to compress the state (Prune de history? Removing HashTree?) to prevent database from being too large.