Added progressbar to the cacheing class.

The class needs a major speedup one way or another.