ccv_swt & memory optimizations