Fixes an issue that Future.collect is N^2 on scala Lists