reducing whats stored in metadata to avoid dependencies on sql via api