Optmize transform lookup.