MULE-7615 - removing usage of RandomAccessFile.getLength() for performan...

...ce reasons