The file should really be created with the correct mode, so it isn't readable in between.