Refactored album artwork caching logic