By raii!
its kinda weird seeing other people on the internet using my exact same optimizations for fnf
sorry
its ok