Optimized shader compiling