Cache the dom queries