optimize dictionary usage