Perform index in temporary directory