Fix a perf regression
Add routes for fetching downloads