Add prototype cache to cuda_extcopy.
Make it compile without warnings.
Dirty hack to disable events.