Not to discourage further discussion, but you might be interested in this previous answer from u/restricteddata: