Do not check defined?(CGI) on every call #to_query