Limit `last_queries` size