Visually indicate expired credit cards

I keep records of my old cards for a few years, this is often useful when having multiple subscriptions.

It is visually difficult to quickly find the cards that are active now, especially if you have 4 cards issued by the same bank, and only 1 or 2 of them are active, and the other ones are expired.

I simple visual indication with an icon would solve the problem and would help to cognitively recognise the active cards quickly without going through each one.

To add a single “if” when rendering a card entry and to grey its rectangle should be a very difficult task. Please can you make this UI actually useful and practical.