Implement preview files caching