Update the method to write search logs for keeping last 5 only