Optimization of superconductivity in the high-pressure Sr-Ca-Cu-O system