Defensive codes to storage