EUCA-7019: Safer lookup of item.__dict__ in cache values setter