To roast cashews at home, do so gently—in a 160-170°F (about 75°C) oven for 15-20 minutes—to preserve the healthy oils.[Mateljan]

Make sure to buy fresh non-rancid nuts and store them well closed in the fridge.

Rancid nuts are not just a question of bad taste but are damaging one’s health!