arrayToQuery perfomance fix