optimization so that the table start and end indices doesn't have to be computed multiple times