Can you not pass the cache instance in to this constructor?  It would be much neater than the global variable...