added caching to getParsedValue