Start to implement cache_array callback