Optimize indexes. Working on async scan