Unit ActiveRecord caching

Cache unit list from database to avoid frequent query to retrieve unit
information on render-time.