speed up updating values
Work around https://github.com/rails/rails/issues/16171