Improve partial and extend segments performance if caching is possible