SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '938812d20a7b51417ad162030c12be35c2cbae6340a9b33777aa250332017b7e' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00017

JSON explain

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