Cache url-handlers as they won't change between connect/disconnects.