parse request params only once