Add a cache system to keep track of the current hostname