SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'a9958048081abc3901d386aafab5ca1a25b64e30edaa81782b03d1863c8a51c5' 
  AND token = 'TcVZ9++oTcBww5XxOTpwcpUNe7mUeqSzvQYZddAamTM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00019

JSON explain

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