Avoid loading C when beta is zero; ZA has already been initialized to zero. For alpha == 0 or K == 0, skip A preprocessing and reuse the direct kernel with k = 0 to perform only the beta update.