Make the global cache optional.