Optimize query
Find last affected commit for a blob