This does not save you because AWS Account IDs are not private, e.g. if you are using S3 pre-signed URLs anywhere, those URLs include your account ID as part of the X-AMZ-Credential URL field:
https://medium.com/@TalBeerySec/a-short-note-on-aws-key-id-f...