We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.