Superconducting spin switch with perpendicular magnetic anisotropy