Calculate curves ahead of time.

More memory (15 versus 6 floats per key) but faster curve look ups.