Get stats in sync

Avoid the 'too many files open' error from leveldb