cache a class with the extend module pre-included