only query once, keep output for later use