Stash compiled kernels on the form to save recompiling

Turns out #244 only helps in a few cases and it's much more
straightforward to stash the kernel on the form data.