Terrain painting - How to?

Is usual to have +300 shaders to compile each time making some change in the material? ~2000 Shaders to compile with bigger material changes…