Add switch to disable usage of external indexes