change cache data structure