Context-sensitive key management for smart grid telemetric devices