For possible implementation and benchmarking please see [here](https://gist.github.com/yuvalif/aa3691c62959b1a9d7dbf7adceac0c78).