SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'ab5211990d4fb971dd8384c841eaec52124933c0fbc4e30f3a00e6fb23259b50' 
  AND token = '5BaYALMhaXAipoLElr6C49AIY9rirOXMNL9y25RcQTg=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00123

JSON explain

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