Modern CPUs, particularly those with AVX-512 extensions, often show better cache performance with the NHWC (channels-last) layout due to its contiguous storage of pixel data for a single location, which aligns well with typical CPU memory access patterns and vectorization.