Thanks for posting your question in the Microsoft Q&A forum.
I suggest storing this data in the database in a hashed format and loading it into memory when the application starts up for faster access. For updating the information, you can implement a handler to detect changes in the database and update the corresponding data in memory accordingly.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful