Cohomology, Nilpotent Elements, and Module Invariants