[api] do not read the configuration several times for download_url calls