url.parse is an expensive function, so making sure to use it once for multiple middleware