If you want to get this done faster (in terms of server response), you can also configure a custom middleware.
Should be easy to configure. Ask AI for sample code.