[Core] Fix static analysis const reference performance warnings (z2555)