Add basic cache statistics

It is really basic, and getting non-existent might make the stats not accurate, but it's a start.