maybe worth caching stats to avoid two attribute resolutions on every request (duplicate or not). or am I micro-optimizing here?