Used buffered input stream in EncryptedFileFactoty