redone bitcoind repetitive detection into caching to filesystem