SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '5f27a308722d9f9e7834757da098a53ba166be14770c227d412dc817e785161b' 
  AND token = 'ks9ZoS/+G+6DyFG78DAcoA0+lnOnEt7nD8a61qnMgo4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00046

JSON explain

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