@caching for file upload

Hi,
I am trying to upload a file.
The app has been defined in class and calls another backend class to process the file.
Since, streamlit on every button click does execute the code from top to bottom…I am running into issue of file uploading every time…


The highlighted sections in the code are external classes…
Kindly let me know how should i use hashing function