Port CacheHeader away from ObjectOutputStream.

The standard Java serialization system relies heavily on
reflection, even for primitive types and Strings, which
generates a lot of garbage. Move to a simple built-in
implementation.

Change-Id: I7f35cbfd1963f2aaf726f5b747cef1b2f8a0ad69
2 files changed