Optimize fileHandle() method

Optimize fileHandle() method by consolidating file handle checks.
Introduce a new private method, _fileHandle(), which generates a new
file handle and remove the unused fileRotate() method.