Combine butter, garlic, salt and cayenne in a large bowl and beat at medium speed with a mixer until well combined. Beat in flour. Stir in Emmentaler and ham. Turn dough out onto wax paper and shape into 2 6-inch logs. Wrap in plastic wrap and freeze up to one month.