Add optimizations for globals / parameters