optimize finding spent outputs
naming is hard