Early cavity detection