Refactor code for finding most interesting photo on a day. Only use read permissions if needed.