misteriuos bug with mysql_real_escape_string: execution took > 1 second. now using mysql_escape_string internal. random-api is now ~ 200 times faster: from 1.6 s to 17 ms