Stopped caching filename
Fixed offset calculation
reduced copy count