Preheat your oven to 400°F (200°C). Line a baking sheet with parchment paper.
In a medium bowl, combine the softened cream cheese, cheddar cheese, crumbled bacon (if using), chopped jalapenos, and garlic powder. Mix until the filling is uniform.
Unfold the thawed puff pastry sheet onto a lightly floured surface. If using a block of pastry, roll it into a rough 10×10 inch square.
Spread the cream cheese mixture evenly over the entire surface of the pastry sheet, leaving a small half-inch border along one long edge.
Starting from the long edge opposite the border, tightly roll the pastry into a log. Pinch the seam closed to seal the filling inside.
Using a sharp knife, cut the log into 1-inch thick slices. You should have about 10 to 12 pieces.
Place the cut pieces cut-side up on the prepared baking sheet. Gently twist each piece 2 to 3 times to create the twist shape.
In a small bowl, whisk together the beaten egg and water to create the egg wash. Brush the tops of the twists lightly with the egg wash. Sprinkle with sesame seeds if desired.
Bake for 15 to 18 minutes, or until the pastry is puffed and golden brown.
Remove from the oven and let cool on the baking sheet for 5 minutes before serving warm.
Notes
For a spicier result, leave some seeds in the jalapenos.
You can prepare the twists ahead of time, place them on the baking sheet, cover, and refrigerate for up to 4 hours before baking. Add a few extra minutes to the bake time if baking directly from the refrigerator.
If you do not have puff pastry, you can substitute with refrigerated crescent roll dough, though the texture will be less flaky.