Fortunately, the cassette is one of the least critical places to lose weight from.
Its rotating, but very close around the axis, so rotational inertia is low - a single gram off the tryre or rim would be worth 5 or 10 off the cassette in peformance terms.
It's not too high , so overcoming the forward-directional interia for leaning when changing direction is easy, and being a small diameter the gyroscopic effect is very minimal, so also has little effect. Again, for overcoming the gyroscope, grams off the rim or tyre are worth many off the cassette.
It's one of the last things to look at when seeking a performance gain, and even then I still wouldn't bother.