Time expiration and fixed cache stats

Tested.