speed iup TMS queries