Transposing is not free for sparse matrices, please do it once and cache the result.