You may be interested in this write up by /u/alriclofgar which goes into detail precisely about what you're asking.