Text this: Critical band-to-band-tunnelling based optoelectronic memory