creating cache key during shutdown to save cpu cycles