Text this: Processing light with an optically tunable mechanical memory