As mentioned in #78, caching will not work with functions using NRT because they won't have a target context when loaded from the cache.
I think more generally than this feature (caching + NRT), kernels loaded from the cache should probably have a target context associated with them.