Set the oven to 375°F and line a rimmed baking sheet with paper towels, then cut the tomatoes into ½-inch slices. Arrange them in one layer, sprinkle with the salt, and let them stand while preparing the custard.
Whisk the buttermilk, mayonnaise, egg, egg yolk, Dijon mustard, black pepper, and cayenne, if using, in a medium bowl. Mix until the custard looks smooth and lightly glossy, then fold in the basil and chives.
Press the tomato slices firmly with fresh paper towels before filling the crust. The surfaces should feel tacky rather than wet, which means much of the loose juice has been removed.
Arrange half the tomatoes in the cooled crust, pour in the herb custard, and scatter the Cheddar evenly over it. Lay the remaining tomato slices on top in overlapping rows and press them down gently.
Place the pie on a rimmed baking sheet and bake on the middle rack for 50 to 60 minutes, rotating it halfway through. The filling should be set in the center, with bubbling golden edges and a deeply browned crust.
Loosely tent the pie with foil if the crust darkens before the filling has finished baking. The foil should shield the rim without touching the cheese-topped surface.
Cool the pie completely for at least 1 hour, then finish with more chopped chives and slice. The rest gives the custard time to firm up, so wedges come out clean instead of collapsing onto the plate.