added optimization for heartbeat serialization so that keys are not tran...

...smitted for a public heartbeat, since they would be zeroed out anyway.