As encores go, a five-inning, three-run effort might not have been exactly what Cain had in mind following his perfect game. But a win is a win, and the Giants' sturdy right-hander — given a long history of hard-luck endings — savors each happy one that falls his way.