The best performing P-40 was the P-40 Q. Put on a diet, less drag, bubble canopy, more hp with a four blade prop. The final prototype, with a 1,425hp V1710-121, made 422mph at 20,500 feet with a time to 20,000ft in 4.8 min. The prototype had six .50's, but production would have had four 20mm cannon. Early 44 date.
More lift for that climb rate, but more drag to keep top speed down too.
Add the V1710-143 with 1,600 hp for the same weight, you have a damm good under 20,000 ft fighter.