We keep too many hacks secret, says ex-NSA director