Restore optimization to remove select distinct index to be loaded

2 jobs for !347 with fix/load-different-index-only in 13 minutes and 31 seconds
latest merge request