unused address query performance tuning