MDL-32214 quiz regrading: with many attempts, PHP runs out of memory