It is not always advisable to always call Cudafy if the GPU code has not been changed. You can cache Cudafy modules using serialization.
CudafyModule km = CudafyModule.TryDeserialize();
if (km == null || !km.TryVerifyChecksums())
{
km = CudafyTranslator.Cudafy();
km.Serialize();
}
TryDeserialize *.cdfy , . , null . , , - .NET-, . TryVerifyChecksums. false, , , cudafy .