How to stop spam contributions?

Also, this would also be more efficient to compute, no?

Yep, though only marginally.