small improvements to cached downloading