check expiry less often, support mem query