Frequent query looking for constraints is consuming database CPU in Oracle