Cache the return of authorized_write

- Speeds up inserts a great deal.