ShieldedDict - improved trimming.