Batch some database updates, and remove stale file handles based on duration since last use rather than a fixed limit (if > fixed limit concurrent tasks, cost to process a report can be 100x due to need to keep opening files)