Cisco is cutting nearly 4,000 jobs, or about 5% of its workforce, as it redirects spending towards artificial intelligence and cybersecurity. The networking equipment maker announced the reductions alongside fiscal third-quarter results that beat expectations on both profit and revenue.

The company said the move is meant to change its cost structure. In a blog post published Wednesday, chief executive Chuck Robbins pointed to "record revenue" and "double-digit growth". He also said Cisco is making strategic investments in its employees' use of AI across the company.