Add configuration option to set writer's maximum frames in memory.