Combine the butter, cheddar, pimentos, salt, cayenne pepper, and flour in the bowl of a food processor fitted with the metal blade. Process until the mixture forms a dough.
Shape the dough into a log about 12 inches long. Wrap in plastic wrap and chill for 3 to 24 hours. Preheat the oven to 375˚F.
Cut the log into 1/3-inch-thick slices. Place half the slices on a parchment-lined sheet pan, 2 inches apart. Sprinkle lightly with black pepper. Bake 25 to 28 minutes or until browned. Cool on the pan for 5 minutes, then transfer to a wire rack to cool completely. Repeat with the remaining slices.