improved url_for performance