Optimize disagg

Fix: https://bugs.launchpad.net/oq-hazardlib/+bug/1295676

Tests are running here: https://ci.openquake.org/job/zdevel_oq-hazardlib/56/