Save the results of querySelectorAll() and only call it once