### Problem [One of the Jason's traces](https://expensify.slack.com/archives/C05LX9D6E07/p1721107369742019?thread_ts=1721060786.438019&cid=C05LX9D6E07) shows weak performance of Onyx `keyChanged` function, caused partially by excessive calls to `getCachedCollection`. #### Sample `keyChanged` call <img width="1220" alt="Screenshot 2024-08-06 at 11 31 20" src="https://github.com/user-attachments/assets/a686042b-b250-45f9-b98a-95943a1cd797"> #### Summarized impact of `getCachedCollection` <img width="1219" alt="Screenshot 2024-08-06 at 11 32 06" src="https://github.com/user-attachments/assets/8cb76236-217a-49f4-b2b2-3ab78fa3cc8c">
Problem
One of the Jason's traces shows weak performance of Onyx
keyChangedfunction, caused partially by excessive calls togetCachedCollection.Sample
keyChangedcallSummarized impact of
getCachedCollection