Small performance improvement to Texture