Energy, compute hardware and data storage, and cybersecurity stocks have been immune to war concerns.