Handle cacheing properly when counting downloads.
Handle cacheing properly when counting downloads.

This was a major cause of it freezing randomly after running for
awhile.

djpetti/rpinets,djpetti/rpinets