Make doc builds faster (#47099)