A little optimization of headwords retrieving