always take unencrypted size
improved unit tests