Reduce memory usage in Crypt