Optimized abstract types caching.