Cache the value of ::header(name).

  This provides a speedup, since we've switched to opening
 and closing the underlying file to avoid leaking filehandles
 in #124.