Make replaceCreateClass cacheable