1. A method for implementing enhanced flash storage control in a flash storage system comprising: providing a flash storage; providing flash controller coupled to said flash storage; said flash controller performing the steps including: employing a feature set including at least one feature responsive to erase operations; computing a current system state responsive to the employed feature set; selecting actions at each time step by sensing the computed current system state for performing an action to maximize a long term reward, and moving to another state in the system while obtaining a short-term reward for the performed action.