small performance improvement and readme update