cache objects in metaclasses