Precompute transpose