NXP-12546: smarter wait for loading query result