Some optimizations | ScratchStats