adds embedded classes to cache