cq-cache seems to accept functions returning TopoDS_Shape objects, but it then throws on the missing 'exportBrep' member function.