Store pre-generated response parts in a database rather than in plain files
With #11350 (moved), we're almost crossing the line where keeping indexes in memory and contents on disk doesn't scale anymore. In the long term we should consider using a database to handle requests.