spark: faster any, all