How about setting all and updating at once?

```
crypt_keeper_fields.each do |field|
  plaintext = r[field]

  if plaintext.present?
    r.send("#{field}=", enc.encrypt(plaintext))
  end
end

r.save!
```