Refactored the IdenticonCache::get method