caching links optimize