Switch to simpler internal data structure.

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>