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

Query time 0.00018

JSON explain

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