Reduces # of SQL queries.