Buffer Optimization for CL transform_scan