Why iterate around all the cache objects clearing them and then remove them all at the end?