Easy hazard getters optimization

Addresses https://bugs.launchpad.net/openquake/+bug/1132708 

For a clean diff, https://github.com/gem/oq-engine/pull/1057 should land first