cache: make stats work on legacy compiler + arch.