Text this: Adaptively Reconfigurable Controller for the Flash Memory