How to use st.cache with sqlalchemy.orm objects

Hi, I ran into the same issue here:

I tried various solutions with no success as you can see in the post :frowning:
I did create a small example in the post, but I guess not small enough since no one answered.