Build initial cache on startup