Restructuring thumbnail caching