TEIID-2569 making the key restriction planning better