query-input directive performance enhanced