I came across this post from @tim (Streamlit Team):
The situation is somewhat similar to yours, and I suppose his reply makes sense in your case as well.