Refactor getExpectedValues to enhance performance and avoid extra
iterations on channels and locales