improvement
keeping query memory in background