Help Optimizing Slow Distributed Array Computation

@vchuravy would know more.