Refactor: push stats into redis