Making a soft relativistic mean-field equation of state stiffer at high density