At some point in my Rails application, I retrieve a large number of ActiveRecord objects from the cache. However, it's possible that some of these records have been deleted from the database itself since they were stored in the cache, so I loop the records and check each one to see if it exists. This takes quite a lot of time. Is there a more efficient way to do this?At some point in my Rails application, I retrie