setting mark invalidation length to be the size of the largest key size+1