Okay I couldn't optimize it perfectly but I got it much better than the other example. The main corrections were:
1. I changed the MOSFET to a more realistic one. I also averaged the idle power consumption to around 150W which is as far as most power MOSFETS can handle
2. I increased the primary inductance of the transformer to 1.5mH, which is the most important part to handle the current consumption.
3. I managed to get it working with a lot lower voltage, and maybe i can get it even lower