Merge pull request #720 from mulesoft/MULE-7615

MULE-7615 - removing usage of RandomAccessFile.getLength() for performan...
(cherry picked from commit 8ffa61f1a433b11659d7b2378981ec82ddf0c0a1)