modules/ta_signal_query: optimize

Basically the same as the parent commit (just much simpler).
26 jobs for perf-lua-ffi_cleaned
in 5 minutes and 42 seconds and was queued for 3 seconds