parse proxy target URL only once