better logging for cache