Prep the pan and oven. Heat the oven to 350°F (175°C).
Line a 9x13-inch baking pan with parchment, leaving overhang for easy lifting. Lightly grease the sides.
Make the crust. In a bowl, whisk melted butter, sugar, vanilla, and salt. Stir in flour until a soft dough forms.
Press evenly into the prepared pan. Prick a few times with a fork.
Par-bake the crust. Bake 12–14 minutes until set and just starting to color at the edges. Set aside to cool slightly while you make the filling.
Stir together the apples. Toss diced apples with lemon juice, brown sugar, cinnamon, nutmeg (if using), and cornstarch.
Set aside to let the juices start to release.
Beat the cheesecake layer. With a hand mixer or stand mixer on medium speed, beat cream cheese until smooth. Add sugar and salt; mix until creamy. Blend in sour cream and vanilla.
Add eggs one at a time, mixing on low just until combined. Don’t overmix.
Make the streusel. Combine flour, oats, brown sugar, cinnamon, and salt. Cut in cold butter with a pastry cutter or your fingers until clumpy.
Assemble the bars. Spread cheesecake batter over the warm crust. Scatter the apple mixture evenly on top, leaving excess liquid behind in the bowl.
Sprinkle the streusel over the apples in an even layer.
Bake. Bake 35–40 minutes, until the edges are set and the center jiggles slightly. The streusel should look golden.
Cool and chill. Cool on a rack for 1 hour, then chill at least 3 hours (overnight is best). This helps the bars set for clean slicing.
Finish with caramel. Lift the slab out using the parchment.
Cut into bars. Drizzle with warm, thick caramel and a pinch of flaky salt right before serving.