Collect stat keys (pending refactoring)