Prob, we do not want to calculate encoding twice.