Don't query the database for the clock multiple times

Profiler says the SQL was executed 9 times on this page when it only needs to be executed once.