Optimizing the transpose.