Fix chunk size.
Extract out key stream reader.