Should you look for a local tfchain explorer which stores everything in a local KV storage, you can take a look (and use) the rexplorer project at https://github.com/threefoldfoundation/rexplorer. It stores wallets (including its locked outputs and optionally partial unlocked outputs), as well as some global stats in a Redis Database.