Can we compile/create material instances with scripts?

thanks for the suggestion, but this would indeed be too much of a performance hit for my material/target hardware.