Avoid creation of unnecessary intermediate map