Regexp object size optimization.