CFOs grew more optimistic about their own firm in the second quarter even as they got less optimistic about the overall U.S. economy.