How to automate the image selection process for calibration

How can I automate the image selection process for calibration?

I have tried re-calibrating with only good images, after performing calibration and removing images with high individual RMS error, but this is way too slow.

Another method is using homography, but for that I need to also perform calibration before filtering and re-calibrating for better results.

Thanks.