add cache with stats