Like you I'd use f22 but focus a third way into the scene
Why 1/3 of the way into a scene?
At f/22, using a 18 mm focal length, on a 1.6x crop sensor camera, with the point of focus:
20 feet from the camera, the DoF near limit is
2.21 feet from the camera and the far limit is infinity.
30 feet from the camera, the DoF near limit is
2.29 feet from the camera and the far limit is infinity.
40 feet from the camera, the DoF near limit is
2.33 feet from the camera and the far limit is infinity.
50 feet from the camera, the DoF near limit is
2.36 feet from the camera and the far limit is infinity.
60 feet from the camera, the DoF near limit is
2.38 feet from the camera and the far limit is infinity.
70 feet from the camera, the DoF near limit is
2.39 feet from the camera and the far limit is infinity.
80 feet from the camera, the DoF near limit is
2.40 feet from the camera and the far limit is infinity.
90 feet from the camera, the DoF near limit is
2.41 feet from the camera and the far limit is infinity.
200 feet from the camera, the DoF near limit is
2.44 feet from the camera and the far limit is infinity.
300 feet from the camera, the DoF near limit is
2.45 feet from the camera and the far limit is infinity.
500 feet from the camera, the DoF near limit is
2.46 feet from the camera and the far limit is infinity.