Merging duplicate materials and merging them

Please give it a try with RenderMergeIdenticalMaterials