Consider only useful query keys

Never mind the useless ones.