How to merge all identical materials into one?
Select all the objects that share the same material. Using Select->Select Pattern may be a quick way to do that.
&#9096; CtrlL -> Material will set the same material for each object.