speed up derivative indexing