Move caching of object model in AFObjectModel.