Very slow web interface with external smb storage with approx 80000 files and folders

I cant get a folder to show its contents if it actually has large amount of files. It just shows empty. Doesn’t even bother to spin.