Buffered SQL for authentication failures?