uspd: Optimization to reduce cpu usages and other fixes
- Optimize instance get command
- Fix segfault on second invalid input in unique key search
- Check memory leaks on CI/CD after functional and api tests
- Optimize code to lower down cpu usages
- Added test case to report max cpu and memory usages after ci/cd tests