switch to index pre-computing