Audioplayer slow - samba mount

So I uploded some 3000 songs. Now when I click a song it takes 3-4 seconds to start playing. If songs were cached they’ll start playing fast. Also playing from x minute is pausing again. CPU usage is non existant. Drives are SSDs.
It’s the same with videos (playing from x minute).

config regarding caching:

  'memcache.local' => '\OC\Memcache\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),`Predoblikovano besedilo`

What could be the problem? Maybe assign more memory to php?

edit:
nevermind, I forgot I moved stuff to samba share. apparently that’s what causing the slowdown.

ok so this is kinda major. Why does it take 4 seconds to start playing anything or shuffling through video/audio?
While I can browse samba directories with my windows explorer as fast as if it was a local disk?
Is nextclound samba client disconnecting and reconnecting on every action?

edit: ok I’ve solved this by using local link instad of samba just because it’s on the same computer.
Apparently php8.1-smbclient has some problems reading stream files.
Opening pictures and stuff is instant while opening media files is slow. Takes some 4 seconds before it starts actually downloading media content. Probably has to do something with streaming…