comparison caching