A better solution, is just to increase your innodb buffer size, you will get virtually same performance as the 'memory' table once all the data is in memory. Plus all the data will be persisted.
This is an old, but still very useful script for helping to suggest what settings to tweak: https://github.com/major/MySQLTuner-perl
http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.ht...