Optimize transpose of transpose