Caching class structures