Removing the initial assignment seems like an unnecessary optimization. It can't be that expensive to just create a hash that will only occasionally be unused.