added variables to track usage of caches