Isn't that exactly what you've been doing with FFC-generated kernels?