Updating cache checker.

Original method was too processor intensive
Missed files