refactor benchmark to add unsafe cache.