FunctionMetadata was being deserialized every time they were inspected. This commit introduces a cache structure to prevent this excessive deserializations.