Dynamically allocation of xxxid_stats