In this case, you may want to extend the algorithm by scanning for example the first 10 frames for bad pixels. If they all stay in the same location, you don't need to continue scanning for the rest of the frames (just use the cached locations). If there are changes, just scan all the frames, a little slower, but should remove them all.
This optimization is a little more complex though; I can look into it hopefully next week. Probably only matters for those who use SSDs.