Implements: #6386 Add functions for determining compression defaults