Optimizing electronic correlations for superconductivity