Add a more efficient way to calculate swap stats

Improves cache calculation from 1.5s to 0.6s.

Merge request reports

Loading