Dynamic RLS generation for a dataset

I would suggest trying to turn this RLS file into a table in database, where you can write updates to it. Or even have it in s3 and then you could update that file with AWS apis.