deduplicate agent stats logging per account key
slightly improved element insertion when reporting agents stats