Improved performance by reducing number of queries to the database.