Optimism on reopening economy boosts US stocks