Anti-theft malfunction

My 2005 malibu classic 4 cyl won’t start sometimes due to an anti-theft malfuntion that can only be resolved if I wait ten minutes as is suggested in the manual…any ideas on how to avoid this from happening? I have noticed that if I open the car slowly, close door, wait just a few seconds to insert key and rev the engine at the initial start, that does seem to help sometimes.