old_contents: const Path = require('path')
  const Keys = require('ssb-keys')
  const nest = require('depnest')
  
  exports.needs = nest('config.sync.load', 'first')
  exports.gives = nest('keys.sync.load')
  exports.create = (api) => {
    return nest('keys.sync.load', () => {
      var keys
      if (!keys) {
        const config = api.config.sync.load()
        const keyPath = Path.join(config.path, 'secret')
        keys = Keys.loadOrCreateSync(keyPath)
      }
      return keys
    })
  }
  
new_contents: const Path = require('path')
  const Keys = require('ssb-keys')
  const nest = require('depnest')
  
  exports.needs = nest('config.sync.load', 'first')
  exports.gives = nest({
    'keys.sync': [ 'load', 'id' ]
  })
  
  exports.create = (api) => {
    var keys
  
    return nest({
      'keys.sync': { load, id }
    })
  
    function id () {
      return load().id
    }
  
    function load () {
      if (!keys) {
        const config = api.config.sync.load()
        const keyPath = Path.join(config.path, 'secret')
        keys = Keys.loadOrCreateSync(keyPath)
      }
      return keys
    }
  }
  
subject: fix caching, add keys.sync.id