I did this for a special friend of ours by manually patching the rake task on server with my unoptimized hack. It got the work done but since the code was not optimized, I did not commit it to our source code.
I’ll add it on my list to come up with a good solution for this. Done via:
https://github.com/discourse/discourse/commit/adb93716ca7776d6f8bbf8f2680ede45fb267b4e