Caching sub types