@jkarni This is a common pattern when creating decorators. You are correct that function calls are expensive in python, but in this case is insignificant compared to other more expensive operations (db queries, io).