Re-add debug log for caching.