Fix: need to commit here in undigest like we do for digest.
Moving cache table creation code to its own method so that it can be shared.
Dropping table instead of emptying its contents so that the schema can be updated in case it has changed.