removed some logs and saving graph in direct memory for faster access