Purge, could it be optimized?

I see that if I purge a file where I have deleted a bunch of stuff then the purge doesn’t do a complete purge. Could it be updated to run multiple runs and compare the results so when last purge 0 on all then it completes?