Making sure that we protect ourselves when using compiled indexes