Inefficient blockchain scan.  Time for some re-engineering