small performance tweak

now only checks filesize at startup and every one hundred writes
thereafter