Refactor Indexing Strategies for better performance.

Create an indexing strategy that performs less database queries and is able to index TextFlow targets faster.