Make flag and register maps immutable