Adding LedgerCacheImpl. Still need to refactor. Separate the logic to load and update the ledgers.