load file by buffer if file size > 1024 bytes