I am going to change it to a non instance variable. But we need to capture the return value of the GpgKey.readable so as to raise an exception if its nil (in the next line)
```ruby
fail HttpErrors::NotFound, _("Couldn't find gpg key '%s'") % gpg_key_id if gpg_key.nil?
```