Freeze schema in production mode