I would probably just write this as:

```ruby
CACHE[key] ||= Attribute.new(field, prefix, aliased)
```