Optimize sprite.texture access