Optimizations


Client side caching: The browser only makes a call to the KV store once; whenever the user needs the graph in the future, it is loaded from LocalStorage.


Regex caching: Regex calculations are expensive; once one is made, store it in the KV storage so if someone requests it again, it can be retrieved without calculation.