I'm not a lawyer, but it would seem that legislation of this sort represents a clear violation of the Equal Protection clause of the U.S. Constitution.
Not just from Arizona's perspective, but from a potential South Dakota litigant's perspective.
Too bad the E.P. clause only applies to states. The federal government, of course, is way too benevolent and wise to concern itself with such trifles.