CUDA Stream management cleanup and optimization.