Merge "Optimization: remove duplicated flags computations for getInstalledPackages" into rvc-dev