Efficient cryptography using Java File I/O