added more indices to make peekMessage more performant