A really quick build. It is exactly like 0.40, but with some memory optimizations that should allow to use 512X512 with 4vram. (Turn on Save VRam Option)
Didn't test on how much this save memory, but hope it will allow 512x512 at least on all 4vram cards.