I just tried your mono preprocess script.
It stacked 200, 4k x 4K images using over a hundred darks, bias and flats.
An excellent result in just 54 seconds.
I have 32 core and a lot of ram and this beat PI’s WBPP script by factor of 9x.
Magic . How did you do this ?