Best solution to connect Nextcloud on RaspberryPi to QNAP NAS


since a long time I use a NAS in my LAN to connect from PCs, Laptops and mobile devices.
Some time ago I added a RaspberryPI with an Nextcloud-Installation.
But I wont use the memory of the Pi for the data but the NAS. Works fine with connections via SMB/CIFS. But is this the fastest solution?

best regards