A few other perf improvements for Haskell outer.