SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '18d397727c55606b78bf3563a47537efc134e0cea992470054ed52bc5da5e1ba' 
  AND token = 'EyN3fTaEKFIKuOPYkfS8U6HyaoxIayDq0OkiucvRjkc=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00017

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}