All variables (global and local) are cached in memory. Contrary to the above comment they are not slower than hash tables.