Global variables and Cached queries