Rearranged cache checking, corrected index for byte addresses, corrected index used for L2 and L3