Oof, one problem is that there are multiple ore tiles on a single spot, so its finding over 30,000 ore entities when it does the search.
I have optimized the searching for the next release, down to about 150ms (about 10 frames of time), so it will still stutter, but not for 5 minutes