A strategy of owning these stocks has outperformed the market on average for several decades, according to Bank of America.