The texID hack is extremely long-standing... is the performance impact really small enough to ignore?  (Once we have correct tlut handling, this code goes away naturally anyway.)