Fixed a terrible performance bug [skip CI]
Fixed a terrible performance bug [skip CI]

gem/oq-engine,gem/oq-hazardlib,gem/oq-engine,gem/oq-hazardlib,gem/oq-hazardlib,gem/oq-engine,gem/oq-engine,gem/oq-engine