more perf tricks

eliminated a bunch of LOAD_GLOBALs