Added ability to limit batch size when re-encrypting database. Fixed some encryption ui bugs.