Avoid string based duplicate detection in ShaderPrecache when possible.