Get rid of calls to Hash.exists.