opencv and cudaContext

After Load libopencv_nonfree.so to application, the first-time call cudaMalloc in each cudaContext is very slowly.