Changing the collection in Branch from eager to lazy fixes the issue so it's really a problem when we execute the query loading all the elements.
I reproduced the issue in all our supported branches.