make indexes lazy load query