Avoid eval() by only caching the data structure, not the full perl package.