Change index so table length calculated only once