This is only an optimization for CPU performance. Callers are currently still required to supply contiguous memory.