The ways cache holds a fixed number of ways records read from the ways table or CSV file.
In normal usage we do not expect it to have many entries, so we linearly scan the list