JQ optimization