getUniformLocation and getAttribLocation performance fix