@jlambert121 Hi, Justing. What about:

```ruby
    AWS.stop_memoizing if instance[:state] == 'Unknown'
    state[instance[:state]] << instance[:instance].id
  end
end

What is the reason to stop memoizing multiple times in one special case and after enumeration even though AWS is never  used after?
And can you please explain little bit more what exactly you are trying to achieve ? 
```