Add cache for specialized kernels.