Remove unused code
Cleanup base64 read function