Lua script to validate the data and optionally push to either list? At least that remains atomic.