Minor optimization to in-memory handling of metadata.
Abstract out region support.