Remove table overhead when uri has no query

All tests are passing, this greatly improved performances in http.