fix cache for extract_addresses() + add cache for mempool