add some limiting to the cache checks

Signed-off-by: Josh Angell <jbangell@gmail.com>