Decoupled cache stats from db