Pre-compute the subtractive elements

This makes the code a bit easier to understand, I think