InBinding and NotInBinding causing double encoding if query is executed multiple times