Removed O_CREAT from caller code to rio_crypto