Improve performance of effect processing, fix autoquit bugs

Also a slight NPH tweak