The serializers should be cached on the context, otherwise a function will be created for each property of each feature. Then all that's left to do is
```js
if (!(key in serializers[featureNS])) {
  // assign serializer here
}
```