Further simplications to compute_mdcts()