Reduce queries for settings