INT-2953 Use Buffered In/Out Streams for Files

Wrap FileInputStream and FileOutputStreams with
BufferedInputStrea, BufferedOutputStream respectively.

Also use BufferedReader, BufferedWriter to wrap FileReader,
FileWriter.