So in the end the replace_mesh_components_materials_on_actors function after the datasmith import did the trick. I parsed the materials generated by the datasmith importer so they could be looked up in a mapping dictionarry. Then you only have to load the old and new materials to memory and pass them to the function.