Add material names and caching

we are not producing a material for each mesh any more