RunId generation
optimization + stats