Avoid parsing URI multiple times.