Some tree farm optimizations.