use an index to speed up the unique appendix search