Make checkDownloadRequest.py more efficient.