Stop saving generated pdfs
Currently, the only reason to store generated pdfs is to reduce time if they have to be generated again. However, the cost of generation is minimal even for large exams compared to the amount of disk space required for just one use.
The solution is to generated them in a temporary file.