better memory index performance
fix memory index locks