Output to CSV and download that, instead of running on every request.