def should_record(api, method, path, data, headers, response=None):
    """ Decide whether or not a given API call should be recorded (persisted to disk) """
    if api in ['es', 's3']:
        return method in ['PUT', 'POST', 'DELETE']
    return False