Cache content types for classes.