Brush 24 of the pastry squares with the beaten egg wash, then put a heaping teaspoon of the ham mixture in the center of each square. Top with the remaining 24 pastry squares and, using your fingers, gently seal the edges together. Using the tines of a small fork, press around the edges to seal. Put the squares on the prepared baking sheet and refrigerate for 15 to 20 minutes.