minor cache improvement