Add cache usage stats

Also added a performance test in the unit tests for message speed