SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '640ee0a24aab2aed49606b39b5a7fd3355ded0e2910edf12207c77799d5e43dc' 
  AND token = 'npd89ie7+JpxVrZwnPkp1JDUYbwhQo9DsmRk0j915/A=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00037

JSON explain

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