Changed code to avoid duplicates making their way into the TrackedDownload cache.