Improved logging of caches