trying to avoid hash recalculation in dict.[get]