@wildanm great, so I suggest to just try to upgrade PHP to 8.0 or 8.1
Personally I'm running PHP 8.1 with the latest Uvdesk version.

Let us know if after upgrading PHP the performance has improvments.