Performance improvements for DownloadCache plugin.