streamlit supports caching... maybe this would be a good idea to speed things up? [Streamlit caching docs](https://docs.streamlit.io/caching.html)