Reduced number of queries to the DB when user changes format options.
Reduced number of queries to the DB when user changes format options.