Query payload keys only once