better codegen for immutable globals