Code optimization for url_control plugin, closes #132